package quick.frame.service.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import quick.frame.core.base.fragment.BaseCompatFragment;
import quick.frame.service.R;

public class OneParentFragemnt extends BaseCompatFragment {
   // @BindView(R.id.fl_container)
    FrameLayout frameLayout;
    public static OneParentFragemnt newInstance() {
        Bundle args = new Bundle();
        OneParentFragemnt fragment = new OneParentFragemnt();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_parent_template;
    }

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {
        if(view instanceof FrameLayout){
            frameLayout = (FrameLayout) view;
            TextView text = new TextView(getContext());
            text.setGravity(Gravity.CENTER);
            text.setText("WARE HOURSE 第 一 个 Fragment");
            frameLayout.addView(text);
        }

    }

}
